﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="PageEdit.aspx.cs" Inherits="AnOtherBlog.AJAX.Admin.Pages.PageEdit" ValidateRequest="false" Title="Page Edit" %>
<%@ Register src="../../Editors/Tiny.ascx" tagname="Tiny" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%--
	<div class="framecontentMsg">
		<asp:Label id="lblMsg" runat="server" EnableViewState="False" CssClass="lblMsg"></asp:Label>
	</div>
--%>
	<div id="mainContentRegion">
		<div id="admin_centercontent">
			<div class="sectionHeader">
				<asp:Label ID="lblPageAdministration" runat="server" Text="<%$ Resources:AdminPages,lblPageAdministration %>" />
			</div>

			<asp:Panel ID="pnlPageEdit" runat="server" GroupingText="Editor de Páginas">
				<asp:Label ID="lblTitle" runat="server" AssociatedControlID="txtTitle" CssClass="labelinline" Text="<%$ Resources:AdminPages,lblTitle %>"></asp:Label>
				<asp:TextBox ID="txtTitle" runat="server" CssClass="textboxlong" Width="600px" MaxLength="200"></asp:TextBox>
				<asp:RequiredFieldValidator ID="rfvTitle" runat="server" 
					ControlToValidate="txtTitle" ErrorMessage="<%$ Resources:AdminPages,rfvTitle %>"></asp:RequiredFieldValidator>
				<br />
				<br />
				<uc1:Tiny ID="txtPageContent" runat="server" Columns="110" Rows="10" />
				<br />
				<br />
				<asp:Label ID="lblSlug" runat="server" AssociatedControlID="txtSlug" CssClass="labelinline" Text="<%$ Resources:AdminPages,lblSlug %>"></asp:Label>
				<asp:TextBox ID="txtSlug" runat="server" CssClass="textboxlong" Width="600px" MaxLength="200" ReadOnly="true"></asp:TextBox>
				<br />
				<div class="halfleft" >
					<asp:Label ID="lblDescription" runat="server" AssociatedControlID="txtDescription" CssClass="labelblock" Text="<%$ Resources:AdminPages,lblDescription %>"></asp:Label>
					<asp:TextBox ID="txtDescription" runat="server" CssClass="textboxmultilinelong" MaxLength="200" TextMode="MultiLine"></asp:TextBox>
				</div>
				<div class="halfright" >
					<asp:Label ID="lblKeywords" runat="server" AssociatedControlID="txtKeywords" CssClass="labelblock" Text="<%$ Resources:AdminPages,lblKeywords %>"></asp:Label>
					<asp:TextBox ID="txtKeywords" runat="server" CssClass="textboxmultilinelong" MaxLength="200" TextMode="MultiLine"></asp:TextBox>
				</div>
				<br />
				<asp:Label ID="lblConfiguration" runat="server" CssClass="labelinline" Text="<%$ Resources:AdminPages,lblConfiguration %>"></asp:Label>
				<asp:CheckBox ID="cbIsPublished" runat="server"  Text="<%$ Resources:AdminPages,cbIsPublished %>"/>
				<asp:CheckBox ID="cbIsFrontPage" runat="server"  Text="<%$ Resources:AdminPages,cbIsFrontPage %>"/>
				<asp:CheckBox ID="cbShowInList" runat="server"  Text="<%$ Resources:AdminPages,cbShowInList%>"/>
				<br />
				<asp:Button ID="btnSave" runat="server" Text="<%$ Resources:AdminPages,btnSave %>"  CssClass="buttonmodal" />
			</asp:Panel>

			<asp:Panel ID="pnlPageList" runat="server" GroupingText="Listado de Páginas">

				<asp:Label ID="lblTotalPages" runat="server" Text="<%$ Resources:AdminPages,lblTotalPages %>" CssClass="label"/>&nbsp;
				<asp:Label ID="lblNumberOfTotalPages" runat="server" CssClass="label"/>
				&nbsp;&nbsp;
				<asp:HyperLink ID="hlAddPage" runat="server" Text="<%$ Resources:AdminPages,hlAddPage %>" ToolTip="<%$ Resources:AdminPages,hlAddPage %>" 
					ImageUrl="~/Admin/Images/Icons/addNew.gif" 
					NavigateUrl="~/Admin/Pages/PageEdit.aspx" />
				<br />
				<div style="font-size:0.8em;">
					<ul id="ulPages" runat="server" style="display: block;list-style-type:circle; " />
				</div>
			</asp:Panel>
		<br /><br />
	</div>
</div>
</asp:Content>
